<template>
	<view class="">
		<Arithmetic :num1=20  :num2=2  :id="id"></Arithmetic>
		加法的结果是{{reslut[0]}} <br>
		减法的结果是{{reslut[1]}} <br>
		乘法的结果是{{reslut[2]}} <br>
		除法的结果是{{reslut[3]}} <br>
	</view>
</template>

<script setup>
import { ref,onUnmounted } from 'vue';
import Arithmetic from '@/components/Arithmetic/Arithmetic.vue'
import {getStore,remStore} from '@/util/storageSync.js'
let id = ref(2)
let data =  getStore(`页面2`)
let reslut = ref(data)

onUnmounted(()=>{
	remStore(`页面2`)
	remStore(`页面1`)
	remStore(`页面3`)
})


</script>

<style lang="scss">

</style>
